package com.wise.summer.v1.cms.content.articlecommon;


import com.wise.entities.content.ArticleCommon;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.summer.BasicSummer;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_001600250002;
import static com.wise.model.content.ContentErrMsgs.Err_001600250004;
import static com.wise.model.content.ContentErrMsgs.Err_001600250013;
import static com.wise.model.content.ContentErrMsgs.Err_001600250015;


@Getter
@Setter
@Publish
@ApiInfo("新增文章")
public class AddArticleCommon extends BasicSummer<ArticleCommon> {


    @ApiInfo("文章发布时间")
    private String publishTime;

    @ApiInfo("文章标题")
    @NotBlank(msg = Err_001600250002)
    private String title;

    @ApiInfo("别名")
    private String alias;

    @ApiInfo("文章内容")
    @NotBlank(msg = Err_001600250004)
    private String content;

    @ApiInfo("图片url")
    @NotBlank(msg = Err_001600250015)
    private String url;

    @ApiInfo("发布状态 0：不发布   1：发布")
    private Integer state;

    @ApiInfo("文章简介")
    private String intro;

    @ApiInfo("排序")
    private Integer sort;

    @ApiInfo("seo_title")
    private String seoTitle;

    @ApiInfo("关键词描述")
    private String seoDescribe;

    @ApiInfo("保存为草稿")
    private Boolean draftState;

    @ApiInfo("网页标题")
    private String pageTitle;
}
